package com.zbs.framework.dao.security.service;

import com.zbs.framework.dao.rolefunction.service.model.UserFunctionInfo;

import java.util.List;

public interface SecurityPermissionService {
    /**
     * 获取权限列表
     * @param userId
     * @return
     */
    List<String> getUserAllPermissionByUserId(Long userId);

    /**
     * 获取功能列表
     * @param userId
     * @return
     */
    List<UserFunctionInfo> getUserAllFunctionByUserId(Long userId);



    /**
     * 判断某个功能是否存在
     * @param userId
     * @param identifier
     * @return
     */
    boolean existsUserAllFunctions(Long userId,String identifier);
}
